package com.study.service.impl;

import com.study.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * @author zhuzi
 * 2023/8/13 12:33
 */
@Slf4j
@Service

public class UserServiceImpl implements UserService {
    /**
     * 测试非Bean
     *
     * @param name 名字
     * @return {@link String}
     */
    @Override
    public String testValid(String name) {
        log.info("参数是[{}]", name);
        return RandomStringUtils.randomAlphabetic(7);
    }
}
